Revert env magic