Fix Table-of-Content generation

Did this *ever* #$%~ work properly?