fix LongPoll example