Fix transaction problem that occurs when you return undefined results from transactions.