I solved the problem by using the calibre TOC generator. I went to tools and edit TOC. Then I removed all of the items and recreated a TOC based on all of the headings. After that, I made sure everything was there and removed anything that wasn't supposed to be there.
|