fixed cache initial bug.