Possible problem with assign( function?

Do you have any ideas on what’s causing it?

m