fix unionizing env bug.