fix switch disabled