fixing toc bug