fix window size setting