fixed bug to prevent team count going beyond max