bug in poll