fix bug in env vars