Fix bug with time.