fix async issue