some minor fixes for Modules.Loader.load.