Fix controller environment vars.