fix call by reference issue after chunk iterator fix