fix reorg json manipulation