fixes RawTxSpec