fix cache helper