fix category selection for categories with multiple levels children