Fix missing index in autocomplete