diff --git a/pd/nw/index.js b/pd/nw/index.js
index b914ec74f910014aa3aaf549cc7b785b7cc4aa9e..efb6914942efa977bd7645eb818a2e06d4ee5191 100644
--- a/pd/nw/index.js
+++ b/pd/nw/index.js
@@ -114,9 +114,9 @@ function connect() {
                 // Selecting multiple files and clicking "Open" will trigger
                 // a separate "open" event for each file, so luckily we don't
                 // have to parse them.
-                    pdgui.menu_open(decodeURI(argv_string.slice(7)));
+                    pdgui.menu_open(decodeURI(argv[0].slice(7)));
                 }
-            }, 2000);
+            }, 3000);
         }
     }
 }