Fix transaction commit