fix cache access