Annoying foreach bug in poller...fixed