Fixed some environemtn settings.