bug correction (env settings)