Fix transaction example (closes #285)