Swap components and instances