Fix FFT frequency calculation