added fix to define team name by parent if exists