fixed a bug, as document Privileges were added several times when the access level was different