small fixes for tx signing