Minor modification in maxwellfdfd and fd3d