Fix bug in FFT which causes tuning code to crash.