Fix bad err reference

`err` is not defined, but `async_err` is.