fix error message in table of contents