fix bug in fftw_plan call