fixbug: crashes when ES server unstable