fixed bug with the autocomplete always failing to go to results problem