added a double check for the teamindex to hopefully finally get rid of
that bug...