fix for async call.

Signed-off-by: Daogang Tang <daogangtang@gmail.com>