fix timer creation