fixed the transaction legality checks