fix cache setup