@bruno: main_challenge.is_team_challenge leads to an error when undefined. commented it.