Fixed the reading of polylines