diff --git a/lib/client.js b/lib/client.js
index 41994c5..f3d1042 100644
--- a/lib/client.js
+++ b/lib/client.js
@@ -299,7 +299,7 @@ export default class Client extends EventTarget {
 		// Delete after firing the message event so that handlers can access
 		// the batch
 		if (deleteBatch) {
-			this.batches.delete(name);
+			this.batches.delete(deleteBatch);
 		}
 	}