Fixed an error where unsaved roles might have their contents overriden when the 'new role' button was clicked again