Fix #8909, role is a dict, not a structure.