Loop not working online

If your first loop and routines are working and your second one is failing with similar routines, could you try reusing the routines from the first loop?