fixed bug, that no results are shown, when theres an error in loading toc