window size fix for Windows