Fix ToC links

Fixes id links for table of contents