repair cache bug