fix team bug