Fix typo in caching code