Fixing a data bug in for loops, once again