fix bug missing getSearchData def