fix the rollback function in the rollbacking_phase.cpp