Fix infinite loop on create poll.