fix menu access check