Fixed crucial bug in table dumper.