Fixes: did not emit 'add-element' event when without callback