fix cursor on headings