fixed the bug of fns.captures is undefined when async is set true