Fixed bug with the time