update to correct multilinestring output instead of linestring in some case