fix plib:tx(...) return reference is input is reference