Fix transaction method scope