polyline fix