Fix the autocomplete predicate