fixed async issue