Fix time display bug