fixed cache to work with new index