window size setting fix