Fix request.done bug