fixed missing environment setting.