fixed crash bug in removeTransactions