Fix looping issue w/ band loop

Properly handle the row for the last item of the loop.