Fixed a bug with the time