fix command search bug