fixes resize nav glitch