fix switch_yms problem