Fixed next_section_id bug