fix cache bug,cache runnig correcly