fixed timestepping issue