fix bug create transaction