Fixed bug in vorAvgDistErr calculation