diff --git a/autocomplete_widgets.common.inc b/autocomplete_widgets.common.inc
index ad0cbc0..17b458b 100644
--- a/autocomplete_widgets.common.inc
+++ b/autocomplete_widgets.common.inc
@@ -88,7 +88,7 @@ function _autocomplete_widgets_get_options_allowvals($field, $string = '', $matc
       }
     }
     else if ($match == 'equals') {
-      if ($value == $string) {
+      if ($value == $string || $key == $string) {
         $options[$key] = $value;
         $count++;
       }
