Missed out one case for setting search mode