Fix for broken window size