Bugfix for time.