Fixed bug display switch in form