Fix window resize bug
Fix window resize bug