Fixing a bug where the TOC showed on all pages