Problem with components properties variants

Dear Community,
I have a problem with a variant property in Figma. I made a card as a component with different sizes and states. States and sizes are variants with different values: e.g. variant “size” with value “320w” or “480w” and each variant has a different state “default”, “selected” with blue color.
I placed the different cards on a screen (as instant of the component “card” with the properties “320w” and state “default” and tested it, there are cards with different values of ther property on a screen. I selected the right card with the right variant (size, vstate) in design mode, but in protoype mode there are suddenly differnt cards from other variants on the screen.

I don´t know where the problem is?