fixed transaction bug for accounts api