Bug fixed when exporting empty tables