bug fix: current TOC link not detected correctly