fix the error display of toc