added another fix for empty json