Reduced memory consumption in scanModules: forcing module scan