diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c
index f249fd02ad1438b67f1524c7a9bb4d437298b282..8b6341a80803f362da1b590f81187b1ee753de6a 100644
--- a/pd/src/s_inter.c
+++ b/pd/src/s_inter.c
@@ -1416,7 +1416,7 @@ fprintf(stderr, "guidir is %s\n", guidir);
         spawnret = _spawnl(P_NOWAIT, wishbuf, "pd-nw", scriptbuf, portbuf,
             "localhost",
             (sys_k12_mode ? "pd-l2ork-k12" : "pd-l2ork"),
-            sys_libdir->s_name, 0);
+            scriptbuf, 0);
         if (spawnret < 0)
         {
             perror("spawnl");