fix transaction error