Fix window layout