fix bugs about search