fixed problem where environments get attache to map/reduce expressions