fixed switch not showing properly