fix menu refresh issue