Fixed bug from loading cache directory