fix shapefile parsing bug