3 Changes:

_layerTeams -> _layerTeams_Active
_layerProxy -> _layerProxy_Active
use _teamsCurrent instead of layerTeams.graphics