         return
 
       # Add this component to the listing
-      c.runtimes[def.runtime].runtime.components[def.name] = def
+      c.runtimes[def.runtime].runtime.definition.components[def.name] = def
 
       # Add this activation context so it can be deactivated
       c.runtimes[def.runtime].contexts.push context

        output.send
          out:
            clearLibrary: true
        c.runtimes[def.runtime].runtime.components = {}
        c.runtimes[def.runtime].updated = true

      # Send updated component definition out

  output.send
    runtime:
      action: 'storage:save:runtime'
      payload: runtime.runtime.definition
  # Deactivate all running contexts
  while runtime.contexts.length
    ctx = runtime.contexts.shift()
