fix to not count also subcategories