Fix headings resolution