fix setting of env var