fixed usage of AsyncResult