Bugfix for shapefile export process