fix json being messed up when doc was banned.