fixed animation timer bug