Polygon segmentation correction