fixed TOC bug