fix list to index