fixed errors in WeightedRegDom.py