fix conversion to LineString