fix sections infinite loop bug.