fixed bottoming out of environment