Fix prev_section