forgot to pass values to resetSearch