Figured out and fixed bugs calling FFTW.