Fixed a caching bug.