fix built-in cache bug