Fixed bug causing time to not update