fixed bugs in search form