fixed Fourier transform reversal issue