I believe you would need to pathcopy @null to the OBX at the beginning of your iterate. This should clear the OBX for that particular iteration and then the rest of your code should populate the OBX correctly. You may need to do this for other segments within the group.