fix time display bug