fix cache loading logic