minor bug fix in select.