fixed bug that returned index of index of cached list instead of index of cached list.