Fix drawing polygons