fix the getTransactionById bug