Fixed flickering in autocomplete