fix list-nth-mod