ACL Roles question

I have developed an ACL editor through Lotusscript agents and forms using Domino Designer 7.

The editor has the following features:

  1. Create/Rename/Remove roles

  2. Assign/unassign roles to users

  3. Create new users

I developed this using the LotusScript NotesACL class.

Everything was working fine, until recently. When a new role is added to the ACL, it is randomly assigned to some random users. I then added roles manually to ensure the problem was not in my script, and it still showed the same behavior of randomly assigning the roles.

I should mention, during testing, several roles were created/edited and removed and assigned to users. I understand there is a limit to the total number of roles. Could it be that internally it is reusing deleted roles even though the new ones have different names?

Any help would be appreciated.