fix menu parsing