fixed bug in delete team