fix close tags of headings