polyline & polygon fixes