fixed broken switch in admin