fix connection error of monitor daemon