Fixed a bug in getAliveTeams(); tried to fix #1