Fixed bug that destroyed tables after exporting them...oops