Fixing environment variable setting.