Fix merge sockets