fix wkt parsing