Table of contents not updating