Repair table of contents