We start with the familiar Schrodinger equation: $$ i\hbar \frac{\partial \left|\psi_S\right\rangle}{\partial t} = \hat{H}_S \left|\psi_S\right\rangle $$
As we switch to a different picture than Schrodinger picture with a unitary transformation $\hat U$:
$$ \left|\psi_S\right\rangle = \hat{U}\left|\psi_P\right\rangle $$($S$ indicating Schrodinger picture and $P$ indicating the arbitrary picture) If we plug in $\left|\psi_S\right\rangle = \hat{U}\left|\psi_P\right\rangle$ into the Schrodinger equation, we obtain:
$$ i\hbar \frac{\partial \left|\psi_P\right\rangle}{\partial t} = \hat{H}_P \left|\psi_P\right\rangle $$ where $$ \hat{H}_P = U^\dagger \hat{H_S} U - i\hbar U^\dagger \frac{\partial U}{\partial t} $$ is the Hamiltonian in this arbitrary picture.
So, the question is - if Hamiltonian is an observable, shouldn't it have the same expectation values in both pictures - yet the second term in $\hat H_P$ makes them unequal. Because:
$$ \left\langle\psi_P\right|\hat{H}_P\left|\psi_P\right\rangle = \left\langle\psi_P\right| U^\dagger \hat{H_S} U \left|\psi_P\right\rangle - i\hbar \left\langle\psi_P\right| U^\dagger \frac{\partial U}{\partial t}\left|\psi_P\right\rangle $$ this simplifies to: $$ \left\langle\psi_P\right|\hat{H}_P\left|\psi_P\right\rangle = \left\langle\psi_S\right| \hat{H_S} \left|\psi_S\right\rangle - i\hbar \left\langle\psi_P\right| U^\dagger \frac{\partial U}{\partial t}\left|\psi_P\right\rangle $$ telling us that the expectation values in two different pictures are not the same. I do not see a reason why that the last term should be zero. What is wrong here? Is Hamiltonian somewhat different from other observables?