fix not retaining history in JSON