fix some bugs in select
Merge pull request #89 from openSUSE/coolo_1721

fix some bugs in select