fix bug where editing a module does not show it in the toc