time bugfix