fixed bug with timer update