Fixed maping check
Changed averageMapQualThreshold