Fix calling #select from a pipeline (#309)