fix bug with no results message always showing after first search