Fixed an issue where multi-page ToCs threw off page numbers.