fix for copy/paste error between window/global in the module loading section