fix for env attribute env