Harmonic average of slopes and the stability of absolutely continuous invariant measure