fix caching of results