diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index be47469b56915d541ad1a3ac97fb6859cfb0bf7e..5ab55a04de16bb07cb45499f6514c8bb95b12e2e 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -3999,7 +3999,7 @@ function gui_mknob_new(cid, tag, x, y, is_toplevel, show_in, show_out) {
     });
     gui(cid).get_gobj(tag)
     .append(function(frag) {
-        border = create_item(cid, "path", {
+        var border = create_item(cid, "path", {
             class: "border" // now we can inherit the css border styles
         }),
         circle = create_item(cid, "circle", {