Transactions: Restore instances and fix bugs