Fix bug by which role 'AAA' would be selected if user selects role 'AAAAAA'