fixed problem with cahce directory.