fix usage of table of contents plugin.