fix polyline to line issue