diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index 87d53c90402aef8a0bd64f5e4adde519c5da7a44..4397dc95c844612632022f913d8a649858182f9a 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -3024,7 +3024,9 @@ function gui_image_configure(cid, tag, image_key, tk_anchor) {
 
 // Move an image
 function gui_image_coords(cid, tag, x, y) {
-    elem_move(get_gobj(cid, tag), x, y);
+    if (patchwin[cid]) {
+        elem_move(get_gobj(cid, tag), x, y);
+    }
 }
 
 function add_popup(cid, popup) {