toc script error correct