bug fix in select.cpp