fix cache index