OK, there may still be some glitches in the allegiance fix sections of the cleanup script. I'll try and take a look at that today or tomorrow.
Not much I can do about your case, since you've named a new Duke. Do let me know if you notice any other similar issues.