Fix async API sample.