fixed some problems with headings