fix menu glitch on resize