fix switch state change display