Following the notation in Goldstein, the solution to the Hamilton-Jacobi equation is the generating function $S$ for a canonical transformation from old variables $(q,p)$ to new variables $(Q,P)$ where the new Hamiltonian is $K=0$ and the new momentum is the integration constant $P=\alpha$. Therefore, $\dot{Q}=\dot{P}=0$. If the old Hamiltonian is not a function of time, the solution may be expressed as
$$ S(q,\alpha,t)=W(q,\alpha) - \alpha t.\tag{1} $$
What's confusing me is that, by definition, $S$ is a type 2 generating function where the new variables are constant in time. However, the new coordinate $Q$ from the type 2 generating function above is expressed as
$$Q=\frac{\partial S}{\partial P} = \frac{\partial S}{\partial \alpha} = \frac{\partial W}{\partial \alpha} - t.\tag{2}$$ Therefore giving
$$\dot{Q} = -1 \neq 0.\tag{3}$$
What am I missing here?