fix extend for headings