fixing the search form bug