fix bug on section branching