bugfix time integration