fix switch_features