fix switch widget