Fixed an error with the clock