Fixed bug on empty shapefile