yep, that's where the problem is, I think. You should define the Fourier transform as something like ##\phi(k')## i.e. use a different variable to the ##k## that is in the equation for ##\psi(x,t)##. Since you generally want ##k## and ##k'## to be two different variables.
edit: or you can just re-name the ##k## in the equation for ##\psi(x,t)## as some other letter, ##\kappa## (kappa) for example. And then use ##\phi(k)## as your Fourier transform. This will save you from having to write out the prime a lot of times, which can be annoying. But go with whichever way you prefer. Main thing to remember is that they are different variables. I'm guessing you know this, but just forgot (as I did to begin with).