Fix window size init error