fix namespace/environment collision bug