made window size consistent