fix menu bug for modal