Fix many-to-many issue with custom tx column