Fixed a bug in toc display