Conflicted data when switch mode!

I created a data text component with 2 properties: “size” and “text content”.
I set Variable for “size” property as: Text size, values are M and L as Mode M and L.
I created Title component by instance of component above which has assigned mode to Text size property.

The problem is: when I switched mode, the data of text do not change as Text content variable.