fixed cache bug