Window size fix for newer Windows