Fix logic

Fix teams bug