Learn to laugh at your own ego. The moment you are gripped by your ego, relax and have a good laugh.
And don't be worried... if you can laugh at your ego, that is the best way to kill it. Don't be serious about your ego, because that is very nourishing food for the ego. That's why all egoists are serious people.