Fix bug: select returns a 3-tuple, not a list