Fixed bug to retrieve subcategories