Bug in fourier transform