fix cache loading