async loop fix
Merge pull request #3 from munimkazia/master

async fix