bug fix: error if no headings