fix socket.io connection