Fixed bug with update timer