fix overlapping batch problem in es-sink