Make selectBuffer() work as expected (by me :-)).