fixed an assertion in the BaseModuleManager