fix the count of category entry