fixed cache writing location error.