diff --git a/enterprise/b/containers_btree.go b/enterprise/b/containers_btree.go
index <HASH>..<HASH> 100644
--- a/enterprise/b/containers_btree.go
+++ b/enterprise/b/containers_btree.go
@@ -162,6 +162,8 @@ func (btc *BTreeContainers) Size() int {
 
 func (btc *BTreeContainers) Reset() {
 	btc.tree = TreeNew(cmp)
+	btc.lastKey = 0
+	btc.lastContainer = nil
 }
 
 func (btc *BTreeContainers) Iterator(key uint64) (citer roaring.ContainerIterator, found bool) {
fixed reset method on btree plugin