errorMeasure bug fixed