Fixed issue with window failing to open to initialized size