Fix the `async` flag handling (see #7382)