Fixed wrong deletion issue on rollback.