Fix global env settings