Fix duplicate TOC and add content type