Fixed autocomplete crash. Still the selected item turns out to be weird