Fixed autocomplete index issue