diff --git a/lib/server/console.js b/lib/server/console.js
index <HASH>..<HASH> 100644
--- a/lib/server/console.js
+++ b/lib/server/console.js
@@ -72,14 +72,14 @@
                 cwd : CWD
             },
             
-            onMessage                   = function(command) {
-                log(ConNum, command);
+            onMessage                   = function(conNum, command) {
+                log(conNum, command);
                 
                 if (onMsg)
                     onMsg(command, callback);
                 else
-                    spawnify(command, Clients[ConNum], callback);
-            },
+                    spawnify(command, Clients[conNum], callback);
+            }.bind(null, ConNum),
             onDisconnect                = function(conNum) {
                 Clients[conNum]         = null;
fix(console) one directory for all consoles