Fixing issue in xpoll module.