Fixed error when trying to display time