As one grows spiritually, one must guard against spiritual pride. This is the remnant ego surfacing. I picture the ego as a hot-air balloon. As soon as I see it rising, I ask the Holy Spirit to pop it with the tip of his cleansing and purifying sword right away. This mental imaging helps. Of course, to uproot the ego completely, I need to become totally humble. Humility and meekness are more powerful than arrogance and haughtiness.