async done bug fix