fixed modelenv issue