fix issue with manually specified labels for headings