Fixed a bug where headings were not being populated.