Fix transaction creation and broadcasting