fixing bug where time was not displaying