Fixed autocomplete not working when clicking