Fix loadModules to callback when done