Fixes agent's SUB socket.