diff --git a/README.md b/README.md
index 779dbf010c426790045f22b27b55e166bf0fc5d1..e58a6d511646092806effe58df5ff5b14777ad1f 100644
--- a/README.md
+++ b/README.md
@@ -114,8 +114,9 @@ Here's a short snippet explaining the gist of it:
 
 # Good: Uses the cache resulting in only a single API request
 >>> with postgrestutils.Session() as s:
-...     print([role['id'] for role in s.filter('business_role')])  # fetches all elements into the cache
-...     print([role['name'] for role in s.filter('business_role')])  # re-uses the cached elements
+...     business_roles = s.filter('business_role')
+...     print([role['id'] for role in business_roles])  # fetches all elements into the cache
+...     print([role['name'] for role in business_roles])  # re-uses the cached elements
 ```
 
 ##### When results are not cached