Fix socket.io connection