fixed tx bug