fixing that transaction problem