fix weird space at the end of autocomplete