Fix window geometry