fix menu behavior