Fix Bugs of Slider and Switch