fix backwards team counting