fix shape with multiple polygons