fix bug in transaction __eq__ check