fix timer problem