Fixed ToC generation