Grass node limitation?

I forgot to mention that I had 40 layers in the grassnode output but not in landscape layers. I have 4 layers which decides if it should paint what version so it looks like this somewhat:

Grass
Moss
Dirt
etc.
FoliageBase​​​​​​
​FoliageVariation1
FoliageVariation2
​​​​​​​FoliageVariation3

Painting with FoliageVariation takes into consideration what material is used bellow and grabs the foliage variation for that specific material it is painted onto.