The cynical story at the time of Malcolm's so-called conversion and subsequent death was that he was starting to realize that things were about to take a nasty turn with Elijah and the brothers and that maybe The Man, this devil, was someone he could work with after all.
X was clear about his change of heart. He went to Mecca and saw blond haired, blue eyed muslims who were born to it. That was the crack in the foundation of his racism. The dam burst when the allegations about Elijah started to bubble to the top. (how's that for mixingg metaphors?)