diff --git a/bin/unlock.js b/bin/unlock.js
index bcd3b8984971614e3a8776eabfcf1b75fbaed61b..513c325ee9046bf1c66c7a5d63f2e73f8020c368 100755
--- a/bin/unlock.js
+++ b/bin/unlock.js
@@ -64,7 +64,7 @@ function unlockall()
         {
             if ( err )
                 bye( 1, err );
-            if ( x == undefed )
+            if ( x == undefined )
                 bye( 1, "wallets not defined" );
             var     failures    =   0;
             var     promises    =   new Array();