fix AI_PLAYER_ID bug