Fixed socket.io bug