Fixed problem with TOC not generating correctly.