fix monitor's bugs