Fixed getSelectedRoles