Fix select.poll code