fix monitor refresh bug