fixed problem with links in toc