API player index fix