bugfix for toc