Fix heap overflow with -async.