fix menu selected/unselected bug