fixed timer bug