Fix change the lambdas from capture by ref to catch by copy,

since by ref produced different results in compare to singel threaded transform