       el = $(el)
       license = el.data 'license'
       if licenses[license.key]? and @matchFilter(licenses[license.key])
-        elements[licenses.key] = el
+        elements[license.key] = el
       else
         el.remove()
 

      el.append($('<p />').text(license.description)) unless _.isEmpty(license.description)
      el.addClass(license.cssClass) if license.cssClass

    el.click (e) ->
      return if e.target && $(e.target).is('button, a')
      select()

    el.data 'license', license
    return el

    if license.template
      if _.isFunction(license.template)
        license.template(el, license, select)
        customTemplate = true
      else if license.template instanceof $
        el.append(license.template)
    else
