bug fix on loading shapefile