Fix incorrect variant being set when in Both variant