fix bug Michael pointed out with fft averages