Fix transaction wrapper