another attempt to fix json error for archived tables