fixing save behavior on repeated flushes