Creat named dynamic material instance gets the wrong material?

Hello, I am trying to get the material from an emitter but when I do it changes the material from this:

To this:

why might this happen?