sorted pathname errors in caching