fix tx/rx procedure