fixed scipy solving/fft