fixing autocomplete endpoint round 2