fix timer error causing crash