Fix editing of teams