fix cache usage