Fixed a bug in the UserIdentity class