fix fixed nav flakiness after window resize