fixed problem with category search