fixed a bug that long poll stopped when no change is detected