diff --git a/templates/client/html/catalog/count/tree-body.php b/templates/client/html/catalog/count/tree-body.php
index 3558cd0bf..69f0b29ab 100644
--- a/templates/client/html/catalog/count/tree-body.php
+++ b/templates/client/html/catalog/count/tree-body.php
@@ -14,7 +14,7 @@
var id = $(item).data("id");
if(catalogCounts[id]) {
- $("a.cat-link, a.name", item).append(' ' + '' + catalogCounts[id] + '');
+ $(":scope > a.cat-link, :scope > .item-links > a.name", item).append(' ' + '' + catalogCounts[id] + '');
} else if( $(item).hasClass("nochild") ) {
$(item).addClass("disabled");
}