fix cache query