Fixed generation of sections and subsections.