diff --git a/lib/file-stream.js b/lib/file-stream.js
index <HASH>..<HASH> 100644
--- a/lib/file-stream.js
+++ b/lib/file-stream.js
@@ -66,11 +66,8 @@ FileStream.prototype.notify = function () {
   self._notifying = true
 
   var p = self._piece
-  debug('before read %s', p)
   self._storage.read(self._piece++, function (err, buffer) {
-    debug('after read %s (length %s) (err %s)', p, buffer.length, err && err.message)
     self._notifying = false
-
     if (self.destroyed) return
 
     if (err) {
@@ -78,6 +75,8 @@ FileStream.prototype.notify = function () {
       return self.destroy(err)
     }
 
+    debug('read %s (length %s) (err %s)', p, buffer.length, err && err.message)
+
     if (self._offset) {
       buffer = buffer.slice(self._offset)
       self._offset = 0
Fix PR: fix buffer is not defined error