fixing the loading of subcategory on changing parent category