tx(): bug fixed