Fixed bug which caused that no tables were exported