async bug fix
Merge pull request #3866 from Jonahss/asyncfix

async bug fix