fixed bug of select poll