       group.nodes[index] = newId
 
     @emit 'renameNode', oldId, newId
+    @checkTransactionEnd()
 
   # ## Changing a node's metadata
   #

  # Once the node has been removed, the `removeNode` event will be
  # emitted.
  removeNode: (id) ->
    node = @getNode id

    for edge in @edges

  # Adding an IIP will emit a `addInitial` event.
  addInitial: (data, node, port, metadata) ->
    return unless @getNode node

    @checkTransactionStart()
    initializer =
      from:
        data: data
