fix some timer bug