diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c
index 2b6a17623ec2bff528d9b133fab786fd9e298ebf..f249fd02ad1438b67f1524c7a9bb4d437298b282 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"),
-            guidir, 0);
+            sys_libdir->s_name, 0);
         if (spawnret < 0)
         {
             perror("spawnl");