               return
             unedit(false)
             collapse()
-            rows[i].parentNode.removeChild(rows[i])
+            $(rows[i]).remove()
             slots.splice(i, 1)
             counts.splice(i, 1)
             rows.splice(i, 1)

          slot = slots[i]
          stop = slot.id == volume.top.id
          row = document.createElement('tr')
          rows[i]?.parentNode?.replaceChild(row, rows[i])
          rows[i] = row
          row.id = id + '_' + i
          row.data = i

        unedit = (event) ->
          return unless edit = editCell
          editCell = undefined
          cell = edit.parentNode
          $(edit).remove()
          return unless cell
          cell.classList.remove('editing')
          tooltips.clear()

