fix switch