Islam calls for good morals and prohibits evil deeds. Thus, the reason behind bad conduct of some Muslims is their cultural customs or their ignorance of their religion and their distance from the sound religion.
In this case there is no contradiction. If the driver of a splendid car, for instance, had a terrible accident because of his ignorance of the sound rules of driving, would this contradict the splendidness of the car?