Fixed bug where an object was sent to allChildren method instead of a string as an id