added FixOrientation after reading polygons