fix issue with window size