Fix fourier calculation.

There are actually only n/2 spectral lines not n.