Fix RequiredModules always returning (an empty hashtable)