Fixed bug on get_teams, added more logs