Clean up malformed transactions.