fix bugs of text search