Fix iterator for subcategories on category view.