fix async bug (fix #2382)