fix switch file