fixed problem with non existing toc file