Fix component swap.