     @[Template.instance().countryLevel.get()]
 
   locationSelected: ->
-    Template.instance().selectedLocations.findOne(id: @_id)
+    Template.instance().selectedLocations.findOne(@_id)
 
   allLocationsSelected: ->
     instance = Template.instance()

    prop.substr(@PROP_PREFIX.length)

  @insertLocation = (location) =>
    @selectedLocations.insert
      id: location._id
      countryName: location.countryName
      admin1Name: location.admin1Name
      admin2Name: location.admin2Name


  'click .location-list li': (event, instance) ->
    selectedLocations = instance.selectedLocations
    if selectedLocations.findOne(@_id)
      selectedLocations.remove(@_id)
    else
      instance.insertLocation(@)
    selectedLocations.find().fetch()
