fixed reading polygons returning a line instead