Fix window size was swapped