           current ?= {}
           current[key] = (current[key] ? 0) + time
           current
+
     _rebuildTreeTimes: (id) ->
       children = @api.view.data._getChildren id
       deletedChildren = (@getRowData id, 'deletedChildren') ? {}
 
       childTotalTimes = _.map children, (child_id) => @getRowData child_id, "treeTotalTime"
       rowTotalTime = @getRowData id, "rowTotalTime"
-      deletedChildrenTotalTimes = _.pluck deletedChildren, 'totalTime'
+      deletedChildrenTotalTimes = _.map deletedChildren, (x) -> x['totalTime']
       totalTimes = _.compact [rowTotalTime].concat(childTotalTimes).concat(deletedChildrenTotalTimes)
       totalTime = sum totalTimes
       @setRowData id, "treeTotalTime", totalTime
 
       childDailyTimes = _.map children, (child_id) => @getRowData child_id, "treeDailyTime"
       rowDailyTime = @getRowData id, "rowDailyTime"
-      deletedChildrenDailyTimes = _.pluck deletedChildren, 'dailyTime'
+      deletedChildrenDailyTimes = _.map deletedChildren, (x) -> x['totalTime']
       dailyTimes = _.compact [rowDailyTime].concat(childDailyTimes).concat(deletedChildrenDailyTimes)
       dailyTime = @_combineDailyTimes.apply @, dailyTimes
       @setRowData id, "treeDailyTime", dailyTime

    DEFAULT_DISPLAY = true
    isLogging: () ->
      (@api.getData "isLogging") ? DEFAULT_LOGGING
    shouldDisplayTime: () ->
      (@api.getData "display") ? DEFAULT_DISPLAY
    toggleLogging: () ->
      @logger.info "Turning logging #{if (do @isLogging) then "off" else "on"}"
      if do @isLogging

    getRowData: (id, keytype) ->
      key = "#{id}:#{keytype}"
      @api.getData key

    setRowData: (id, keytype, value) ->
      key = "#{id}:#{keytype}"
      @api.setData key, value

    transformRowData: (id, keytype, transform) ->
      @setRowData id, keytype, (transform (@getRowData id, keytype))

