Fixed socket.io scoping