Your comment was already addressed in post 42.
Obviously, this fails on the 2nd run because the records were added in the first run.