diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c
index 041c37a3b05574845c7384d972ed7fc797cb3eb5..893c0dce02d2cb3c320cff9d5a2ae9dfd5b06fed 100644
--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -1875,7 +1875,7 @@ static int run(const char* source_path, const char* dest_path, uid_t uid,
     struct fuse fuse;
 
     /* cleanup from previous instance, if necessary */
-    umount2(dest_path, 2);
+    umount2(dest_path, MNT_DETACH);
 
     fd = open("/dev/fuse", O_RDWR);
     if (fd < 0){