poll bug fix