fixed issue with linking stats to teams