fixed undefined time display