fix incorrect window sizes in changeSize()