fix bug that would select first match even if another was chosen