Bug fix: table schema garbled on export