fix tx bug