fix window resize delay