Hello,
this is odd, but this seems to work for me correctly. I have tested it with a Cube and 4 materials inside a Layered, I've also tried having some naming conflicts with existing materials, but this all seems to be working correctly.
Could you please draft a scene where this issue occurs? Or guide me into running into this issue?
Thanks,
Jan