fix cache retriving