Fix error in toc generation.