Fixed return value for select() method.