fix a bug of monitor