fix bug in solver_Fourier and other  bugs