Fix timeout problem on poll.js