Fix the way TOC levels are written.