fix saving of role data