Fixing error with environment loading.