fix switch_yms