Fixed socket.io polling bug