fix monitor api bug