Fix time discretization error