fixes duplicate hasmany in teams model