Fixing misuse of FFT from apache-math.