Make sure all sections are created

Sections were not being created when the number of sections was increased.