Fix crashing bug in non-transparent EDCM models.