Fixed bug with the toc selection