fix environment edit text bug