         node: edge.to.node
         port: edge.to.port
       metadata: edge.metadata
-      graph: @graph.properties.id
+      graph: @graphId
 
   addInitial: (iip) =>
     @registerChange 'addinitial',

      node: priv.process
      port: priv.port
      metadata: priv.metadata
      graph: @graph.properties.id

  removeInport: (pub) =>
    @registerChange 'removeinport',
      public: pub
      graph: @graph.properties.id

  renameInport: (oldPub, newPub) =>
    @registerChange 'renameinport',
      from: oldPub
      to: newPub
      graph: @graph.properties.id

  addOutport: (pub, priv) =>
    @registerChange 'addoutport',

    while @changes.length
      change = @changes.shift()
      @runtime.sendGraph change.topic, change.payload
    @outPorts.sent.beginGroup @graphId if @graph
    @outPorts.sent.send true
    @outPorts.sent.endGroup() if @graph
    @outPorts.queued.send @changes.length
