fixed auto complete ui bug