fixed bug with environment setting