fix monitor bug