Reset non-flushed versions when flushing versions in refresh command