fix IconCategories tree detection