Fixes the fields in the json file