fixing events.json file