diff --git a/src/adapters/pouch.idb.js b/src/adapters/pouch.idb.js
index <HASH>..<HASH> 100644
--- a/src/adapters/pouch.idb.js
+++ b/src/adapters/pouch.idb.js
@@ -354,6 +354,11 @@ var IdbPouch = function(opts, callback) {
             });
           });
         } else {
+          if (doc._attachments){
+            for (var key in doc._attachments) {
+              doc._attachments[key].stub = true;
+            }
+          }
           callback(null, doc);
         }
       };
diff --git a/tests/test.attachments.js b/tests/test.attachments.js
index <HASH>..<HASH> 100644
--- a/tests/test.attachments.js
+++ b/tests/test.attachments.js
@@ -74,4 +74,19 @@
     });
   });
 
+  asyncTest("Test remove doc with attachment", function() {
+    initTestDB(this.name, function(err, db) {
+      db.put({ _id: 'mydoc' }, function(err, resp) {
+        db.putAttachment('mydoc/mytext', resp.rev, 'Mytext', 'text/plain', function(err, res) {
+          db.get('mydoc',{attachments:false},function(err,doc){
+            db.remove(doc, function(err, resp){
+              ok(res.ok);
+              start();
+            });
+          });
+        });
+      });
+    });
+  });
+
 });
Test and fix for removing doc with attachments (via @chendricks)