Fix the setting of 'window.ENV'.