fix instance variable issue for @search_term