oops! fixed a bug with toc hierarchical structure