2 bugs in autocomplete