fixed a bug with insertPrivilege if the user already has an privilege for that event