That box shows only the main categories, but does not filter the users who are using the subcategories.
If the option to choose mother category is selected in Osclass, you will never be able to filter users, since users only have publications in the subcategories and not in the mother categories.