Fixed error access env var.