fix time display issue