Fix history json file