fixed the removal of json fields