             if data.length
               items = data.length
               response $.map data, (item) ->
-                $.extend(item, { value: item.name })
+                $.extend(item, { value: item.value })
                 item
             else
               $queryRefugeeField.autocomplete("close")

      ul.addClass('search-refugees')
      $("<li>")
        .data("ui-autocomplete-item", item)
        .append("<a>#{item.name} #{item.dossier_numbers.concat(item.ssns).join(', ')}</a>")
        .appendTo(ul).after($more)

          items: 10
        success: (data) ->
          response $.map data, (item) ->
            value: item.value
            id: item.id
    select: (event, ui) ->
      event.preventDefault()
