fix for save-as-shapefile bug