Fix typo and issue with empty JSON files