fix timer removal bug