fixed saving of role rules