Fix transferComponentState.