Fixed a few small bugs with FFTW wisdom. I don't understand whether or how this is used, but there were some bugs in implementation.