fixed some bugs in fft_history module.