Update json cats
Fix update_categories index
Add debug sentence