[NX-219] Fix items / repo loop variables init