Defect fixed for add team function