fix bug that prevented the time to be displayed