Fixed bug with displaying empty subcategories