teams: fix edge case (inefficient solution)
teams: more efficient fix (still not correct)