         populate = ->
           bySlot = Key == pseudoCategory.slot
           populateCols(bySlot)
+          foot = Rows[-1]
           Rows = []
           if bySlot
             populateSlots()

          return

        generateFoot = ->
          info = new Info(-1)
          if Foot
            $(Foot).empty()
          else
            Foot = TFoot.appendChild(document.createElement('tr'))
            Foot.id = ID + '_add'
          info.tr = Foot
          info.cols = Groups[0]
          info.category = Key
          info.slot = undefined
          td = info.tr.appendChild(document.createElement('td'))
          td.setAttribute("colspan", info.cols.metrics.length)
          td.className = 'null'

            Order = if Rows.length then [0..Rows.length-1] else []
          $(TBody).empty()
          Expanded = undefined
          Rows[-1] = foot if foot
          generate()
          return

