Fix issue with invalid JSON file