Fixed bug related to toctree