fixed a regression in VersionedModuleSelector and ModuleLookup