Fixed local consistency issue during long flushes.