fix bugs of simple search