Fixed bug with wrong team ids.