Same colored spawn objects between blueprints

I sort of managed to do that what i want by following blueprint but still the color which has 0 index (red in my case) still appears on top of the red colored shape. For rest of the colors its ok. I need to make an exception to the 0 index but i am unable to do that. Thanks for answers.

243545-adsız.png