fix team and player id check