fix the extend part of the toc