Fixed bug with time.