create win early

fix crash bug