correct skip condition for autocomplete