fixing mouseclick in autocomplete