fixed problem with loop_toc on top level