fixing bug on app.settings.env