Fix bad `env` reference.
Merge pull request #6178 from s0undt3ch/develop

Fix bad `env` reference.