fix bugs in search tab