I have kind a racist mind

I have ego problem and I feel and think sometimes like racist how to overcome this mind set how to control ego problem