Fixed FFT calls and other errors