Trouble with Spawn Class and Return Value

Hi guys,

the spawn node is giving me a bit of a headache. If I just select the spawn node and chose the class inside this node, the return value is set correctly. But if I connect an input class variable which I have set before, the return value gets mixed up.

Is there a workaround for that?
Best regards,
Michael