fix duplicate TOC problem again, which is independent of section folding