Corrected bug in transactions.