Fix window_size error