Patch from lincoln to fix #1601: strange behaviour when duplicating multiple regions.