Fix async bug exposed by d94d507.