fixed cache creation issue