fixed bugs in search page