Fix setting window size