Fixed issue with async.