Fix orientation of polygons and paths.