Fixed unweighted version of positionVariation.py