fix hasChildCategories