bug fix in asynchronous execution