Can you post the script? My first guess is that the issue is in the step progression of the script...If so, the script itself would need a review.
If everything is from the frame of reference of Customer...extra countries should be tagged to customers...are they?
If you run the script again, do you now have 2 extra of each country?
How do I post the script?
Instead of flushing the cache, I should have committed the record.
That cost me two hours.... :-)