cleanup simple polyline