mindistSegments Para fix