Fixed bug where headings skip levels