fixed error on determining length of transactionInId list