Fix window resizing.