Fixing socket.io problems