Fix window resize, try memory init