Fixed ENV checking.