Fixed folding of TOC window (fixes #34)