     @tasks = 1 unless @tasks
     @finished = false
     @started = []
-    @branches = []
+    @branched = []
     @aborted = []
     @fulfilled = []
     @rejected = []

    state =
      tasks: @tasks
      finished: @finished
      branches: @branches.slice 0
      aborted: @aborted.slice 0
      fulfilled: @fulfilled.slice 0
      rejected: @rejected.slice 0

  registerTree: (idx, tree, onResult) ->
    tree.branched (c) =>
      path = if c then c.toString() else ''
      @branched[idx] = {} unless @branched[idx]
      @branched[idx][path] = c
    tree.started (c) =>
      path = if c then c.toString() else ''
      @started[idx] = {} unless @started[idx]
