Revert "Revert "fft correction""

This reverts commit 810a9ca15ea2faa5f588409ea688c15a8f584882.