fixed one bug in select-auto.