This fix an out of bound when indexing inputs for games that uses unsupported values (8 here) Close #2724.