fixed switch.frame