fixed error with json files