fixing clone bug and fft bugs