fix bug, add pref for selected roles