correcting some mistakes in fdtd