adjusting linestring correctly