fix the do search bug