diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index ef7df426f12991494d156bfc3cbbe56304020f4a..2db66b4767903fca2a88549695b36759112c2839 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -3115,7 +3115,7 @@ exports.skin = (function () {
             preset = name;
             post("trying to set...");
             for (w in patchwin) {
-                if (patchwin.hasOwnProperty(w)) {
+                if (patchwin.hasOwnProperty(w) && patchwin[w]) {
                     apply(patchwin[w]);
                 }
             }