Fix bug with time display