Fix array range issue in FFT example