Fix TOC click handling.