Fixed cache error handling