Fixed socket.io connection issue