fixed bug which created incorrect account-transaction relations