Fix crash on 2.3 during categorization