Fix window resize.