fixed window resize navigation bug