Fix degenerate polygons