bug with env var