fix controller environment