fixed bug for when caching is disabled