fixed teamLimitfunctionality