small bugfix related to number of threads in FFT