fix problem for switch menu