Fixed bug using symbols instead of strings for hash keys, conditional logic on isSubCategorySearch flag