           sibling.id isnt id
       JsPath.setAt form.getCustomData(), path, collection
     else
-      @removeHiddenInputItem path.join('.')
+      @removeHiddenInputItem path
     @removeSelectedItemData data
     @selectedItemCounter--
     item.destroy()
-    @emit 'ItemListChanged'
+    @emit 'ItemListChanged', @selectedItemCounter
 
   rearrangeInputWidth:()->
     # mainView = @getView()

      if item.getOptions().userInput is not ""
        @selectedItemCounter++
    else
      @addHiddenInputItem path.join('.'),itemValue

    @addSelectedItemData data
    @addSelectedItem itemName, data

      defaultValue  : value

  removeHiddenInputItem:(name)->
    delete @hiddenInputs[name]

  addSelectedItem:(name,data)->
    {selectedItemClass} = @getOptions()
