corrected correlation_fft

After testing with a naive implementation in C, it turned out that
selection of the result was wrong.