Commit before replacing