fix bug that happens after searching for a non-existant string, and
later for an existant one.