bugfix history value while flushing