fix category search bug