Fix bug of wrong path to cache