fix bug with multiple polyline