diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -173,7 +173,7 @@ prototype._flush = function (callback) {
   if (missingBytes !== 0) {
     var error = new Error('incomplete blob')
     error.incomplete = true
-    error.missingBytes = this.missingBytes
+    error.missingBytes = missingBytes
     this.emit('error', error)
   }
   callback()
Fix missing bytes properties of error objects