correct logic error on disabling monitoring