attempt to fix json bug for archived tables