Fixed bug - Replacing Switch with temporaries broke the SwitchData parent reference