corrected bug checkingexpiredtransactions