fix cache extraction