fix poll bug