A fix in autocomplete auto-triggering