fixed crash in removeTransaction