fixed timer problem