another env bug fix