Fix window size initialization.