fixed incorrect variable for clearTransactionInRecords