bug fixed test case #2 in select-auto