Fixed issue #2970 with asynchronous mode