fix bug where extra modules are ignored