Fix window setting