table: fix loading and dumping