 
             option.search_text = text
 
-            @results_data[option.group_array_index].search_match = true if option.group_array_index?
+            @results_data[option.group_array_index].group_match = true if option.group_array_index?
           
           else if option.group_array_index? and @results_data[option.group_array_index].search_match
             option.search_match = true

  results_option_build: (options) ->
    content = ''
    for data in @results_data
      if data.group && data.search_match
        content += this.result_add_group data
      else if !data.empty && data.search_match
        content += this.result_add_option data


    for option in @results_data
      if not option.empty

        option.group_match = false if option.group

        unless option.group and not @search_groups
          option.search_match = false

          search_string = if option.group then option.label else option.html
