Fixed bug in caching example.