Fixing generated toc.