tries to fix the broken toc problem