Fixed crash in TransactionModel