Fixing an issue with selection

bug: was using suggestionsArray instead of matchedSuggestion.
this was causing wrong values to be selected.