Fixed an issue with subcategories not expanding after search fix