ERROR: Cannot read property 'transactions' of undefined