fixed a bug with option clicking with autocomplete