Fixed deep-copy problem ... if we assume that StateIdentities cannot be deep copied