fix removeOverlapingIndeciesByPriority