Fix bugs in AsyncHelper