fix category search method