diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js
index 98036dd73ad802c154ee7c4ac7ca7791728e72bf..570b20e99bb0d78b99a15a6e7cf6d33a20381804 100644
--- a/pd/nw/pd_canvas.js
+++ b/pd/nw/pd_canvas.js
@@ -117,7 +117,7 @@ function nw_window_focus_callback(name) {
 
 function nw_window_blur_callback(name) {
     // Fake a mouseup event to keep from getting a dangling selection box
-    if (canvas_events.get_state === "normal") {
+    if (canvas_events.get_state() === "normal") {
         pdgui.pdsend(name, "mouseup_fake");
     }
 }