fix reversion after commit