fix long polling bug