Cleanup the table of contents.