fix issue on win
fix async issue