not to modify teamid when team deleted
fixed activity issue