you have to reassign previous (and next) every iteration of the for loop.
for obj in mod do { po = previous(obj) no = next(obj)
you don't need the refresh.