Fix bug to TOC generation.